package com.jtapps.remall;

import java.sql.Timestamp;
import java.util.Calendar;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.text.GetChars;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.TextView;

public class NewActivity_Tasks extends Activity {

	

	static Context context = null;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.new_layout_task);
		context = this; // set context
	}

		
	public void onClickSave (View view)  {
		EditText name = (EditText) findViewById(R.id.editname);
		String strName = name.getText().toString();
		
		EditText description = (EditText) findViewById(R.id.editdescription);
		String strDescription = name.getText().toString();
		
		DatePicker date=(DatePicker) findViewById(R.id.date);
		int day=date.getDayOfMonth();
		int month=date.getMonth();
		int year=date.getYear();
		
		Timestamp timestamp=new Timestamp(year, month, day, 0, 0, 0, 0);
		
		System.out.println(name);
		System.out.println(timestamp);
		System.out.println(month);
	}
}